<template>
  <div>
    <div>this is a 局部组件</div>
    <div><Xbuttons></Xbuttons></div>
    <div><Son :cat="for_son" @changeMsg="changeSon"></Son></div>
  </div>
</template>

<script>
import Xbutton from "../globalComponent/Xbutton.vue";
import Son from "./Son.vue";
export default {
  components: { Xbutton, Son },
  name: "PartOne",
  data(){
    return{
      for_son:'fuck you!'
    }
  },
  methods:{
    changeSon(newMsg) {
      this.for_son = newMsg
    }
  }
};
</script>

<style></style>
